#define _CRT_SECURE_NO_WARNINGS 1
#include"sort.h"
void InsertSort1()
{
	int a[] = { 2,4,1,7,8,3,9,2 };
	InsertSort(a, sizeof(a) / sizeof(int));
	print(a, sizeof(a) / sizeof(int));
}

void ShellSort1()
{
	int a[] = { 9,1,2,5,7,4,6,3 };
	//InsertSort(a, sizeof(a) / sizeof(int));

	

	ShellSort(a, sizeof(a) / sizeof(int));
	print(a, sizeof(a) / sizeof(int));
}

void SelectSort1()
{
	//int a[] = { 9,1,2,5,7,4,6,3,5,9,1,2,5,7,4,6,3,5,9,1,2,5,7,4,6,3,5,9,1,2,5,7,4,6,3,5,9,1,2,5,7,4,6,3,5 };
	//InsertSort(a, sizeof(a) / sizeof(int));
	//int a[] = { 2,4,1,7,8,3,9,2 };
	int a[] = { 9,1,2,5,7,4,6,3 };

	
	SelectSort(a, sizeof(a) / sizeof(int));
	print(a, sizeof(a) / sizeof(int));
}
void HeapSort1()
{
	int a[] = { 9,1,2,5,7,4,6,3 };
	HeapSort(a, sizeof(a) / sizeof(int));
	print(a, sizeof(a) / sizeof(int));
}
int main()
{
	InsertSort1();//ok
	ShellSort1();
	SelectSort1();
	HeapSort1();
	return 0;
}
